
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 UmsRole 分页列表
*/
export function getUmsRolePagination(data: any) {
  return axios.get(`${context}/umsRole/pagination`, { params: data });
}


/**
 * 获取 UmsRole 所有数据
*/
export function getUmsRoleAllList(data: any) {
  return axios.get(`${context}/umsRole/all`, { params: data });
}


/**
 * 获取 UmsRole 详情
*/
export function getUmsRoleDetailById(id: any) {
  return axios.get(`${context}/umsRole/${id}`, { params:{id} });
}


/**
 * 新增 UmsRole
*/
export function addUmsRole(data: any) {
  return axios.post(`${context}/umsRole`, data);
}

/**
 * 修改 UmsRole
*/
export function updateUmsRole(data: any) {
  return axios.put(`${context}/umsRole`, data);
}

/**
 * 删除 UmsRole
*/
export function batchRemoveUmsRole(data: any) {
  return axios.post(`${context}/umsRole/batchRemove`, data);
}

    